import {server} from "../utils/request";

export function queryHealthMetrics(id){
    return server({
        url: `/residents/queryRecentOne/${id}`,
        method: 'post'
    })
}

export function queryResidentProfile(id){
    return server({
        url: `/healthInfo/queryByResidentId/${id}`,
        method: 'post'
    })
}

export function queryHealthHistoryByType(residentId, type) {
    return server({
        url: `/residents/health-history/${residentId}`,
        method: 'get',
        data: { type }
    });
}